/**
 * \file TokenId.h
 *
 * Asteriskos Compiler 1
 * Written 2010-2011, by Anthony Berlin and Alexander Carlqvist
 *
 * This file is part of ICC.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef TOKEN_ID_H
#define TOKEN_ID_H

/// Declarations of token ids.
enum TokenId
{
	/// -------------------------------------------------------------------------------------------
	/// Token types: Reserved identifiers.
	/// -------------------------------------------------------------------------------------------

    /// Special tokens.
    TOK_NONE,
    TOK_EOF,

    /// Literals.
    TOK_INTEGER,
    TOK_BOOLEAN,
    TOK_STRING,

    /// Identifier.
    TOK_IDENT,

    /// Punctuators.
	TOK_OPEN_BRACE,
	TOK_CLOSE_BRACE,
	TOK_OPEN_PAREN,
	TOK_CLOSE_PAREN,
	TOK_SEMICOLON,
	TOK_PLUS,
	TOK_MINUS,
	TOK_ASTERISK,
	TOK_SLASH,
	TOK_ASSIGN,
	TOK_COMMA,
	TOK_EQUAL,
	TOK_NOT_EQUAL,
	TOK_GREATER,
	TOK_LESS,
	TOK_GEQ,
	TOK_LEQ,
	TOK_NOT,
	TOK_AND,
	TOK_OR,
	TOK_DOT,

	/// -------------------------------------------------------------------------------------------
	/// Token types: Reserved identifiers.
	/// -------------------------------------------------------------------------------------------

	/// Simple declarators.
	RID_VOID,
	RID_INT,
	RID_BOOL,
	RID_STRING,

	/// Specifiers.
	RID_STATIC,
	RID_CONST,
	RID_EXTERN,
	RID_SIGNED,
	RID_UNSIGNED,

	/// Keywords.
	RID_IMPORT,
	RID_RETURN,
    RID_IF,
    RID_ELSE,
    RID_WHILE,
	RID_BREAK,
	RID_CONTINUE,
    RID_PUT,
    RID_GET,
    RID_ASM,

    /// Operators
    RID_DECLARED
};

#endif // TOKEN_ID_H
